import {Provide, Scope, ScopeEnum, Inject} from '@midwayjs/decorator'
// import { Result } from '../dto/result';
// import { ErrorEnum } from '../utils/errorEnum';

@Provide('CountHandlerMiddleware')
@Scope(ScopeEnum.Singleton)
export class CountHandlerMiddleware {


    @Inject('ddd')
    ddd;

  resolve() {
    return async (ctx, next) => {

        console.log(this.ddd)
      
      await next();
    }
  }
}